<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网站管理</title>
    <#include "layout/import_js.ftl" />
    <#include "layout/import_css.ftl" />
    <script src="../static/js/manager.js"></script>
</head>
<body>
<#include "layout/header.ftl"/>
<#include "layout/sidebar.ftl"/>

<div class="container">
    <div class="raw">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title"></h3>
            </div>
            <table class="table table-hover table-bordered">
                <div class="raw">
                    <th class="col-sm-8">模块</th>
                    <th class="col-sm-2">状态</th>
                    <th class="col-sm-2">操作</th>
                </div>
                <tr>
                    <td>匿名登录</td>
                    <td><#if anonymous>
                            开启中
                        <#else>已关闭
                        </#if>
                    </td>
                    <td>
                        <a class="btn btn-warning" href="/manager/anonymous/enable">开启</a>
                        <a class="btn btn-info" href="/manager/anonymous/disable">关闭</a>
                    </td>
                </tr>
                <tr>
                    <td>Debug模式</td>
                    <td><#if debug>
                            开启中
                        <#else>已关闭
                        </#if>
                    </td>
                    <td>
                        <a class="btn btn-warning" href="/manager/debug/enable">开启</a>
                        <a class="btn btn-info" href="/manager/debug/disable">关闭</a>
                    </td>
                </tr>
                <tr></tr>
                <tr></tr>
            </table>
        </div>
        <nav aria-label="Page navigation">
            <ul class="pagination pagination-lg pull-right">
                <li>
                    <a href="#" aria-label="Previous">
                        <span aria-hidden="true">&laquo;</span>
                    </a>
                </li>
                <#list 1..(page.getTotalPages())!1 as i>
                    <li><a href="/manager?pageIndex=${i}">${i}</a></li>
                </#list>
                <li>
                    <a href="#" aria-label="Next">
                        <span aria-hidden="true">&raquo;</span>
                    </a>
                </li>
            </ul>
        </nav>
    </div>
</div>

<#include "layout/alert.ftl" />
</body>
</html>